/*
 * 产品规格搜索
 * @Author: ljb 
 * @Date: 2018-03-27 17:51:07 
 * @Last Modified by: kanglin
 * @Last Modified time: 2018-06-01 14:45:43
 */
<template>
<Form ref="formInline" inline>
    
    <Form-item label="类别名称" prop="title" :label-width="100">
         <Input v-model="formValidate.name" type="text" placeholder="请输入类别名称"></Input>
    </Form-item> 

    <Form-item>
        <Button type="primary" @click="confirmSearch">搜索</Button>
    </Form-item>
    
</Form>
</template>
<script>

export default {

    name: 'specification-search-form',

    data: function () {
        return {

            formValidate : {

                name : ''

            }                  //搜索框的对象参数
        }
    },

    mounted() {

    },

    methods: {

        /**
         * 确认搜索
         * @return {undefined}
         */
        confirmSearch(){

            const param = {

                name: this.formValidate.name

            }

            this.$emit('search',param);

        }
        
    },
    
}

</script>